#ifndef USERCONTROLLER_H
#define USERCONTROLLER_H
#include <QList>
#include <model/usermodel.h>

using namespace std;

class UserController
{
public:
    // constructor
    UserController();
    // desctructor
    ~UserController();

    // create new user
    bool create(QString name, QString registration, QString type, QString description, QString login, QString password);
    // user sign up on system
    bool singUp(QString registration, QString password);
    // authenticate logged user
    bool authenticate(QString password);
    // change user type
    bool changeType(QString registration, QString type);
    // change user password
    bool changePass(QString registration, QString newPass);
    // list all users
    bool list();
private:
    UserModel user;
};

#endif // USERCONTROLLER_H
